package com.kun.event.service;

import com.kun.event.event.MessageEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

/**
 * @author fangkun
 */
@Service
public class MessageEventListener implements ApplicationListener<MessageEvent> {

    @Override
    public void onApplicationEvent(MessageEvent event) {
        System.out.println("接收到事件消息" + event);
    }

}
